package com.study.sequence.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 递增序列信息表
 * </p>
 *
 * @author zhangbo
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BtSequence implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 业务键
     */
    @TableField("BUSINESS_KEY")
    private String businessKey;

    /**
     * 增长值位数
     */
    @TableField("VALUE_SIZE")
    private Integer valueSize;

    /**
     * 当前值
     */
    @TableField("CURRENT_VALUE")
    private Integer currentValue;

    /**
     * 步长值
     */
    @TableField("STEP_VALUE")
    private Integer stepValue;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    /**
     * 有效标识
     */
    @TableField("DEL_IND")
    private String delInd;


}
